<?php

if (!defined('easyframework_inited')) 
	exit('No direct script access allowed');

/**
 *  @file test.php
 *  @brief Testing the logger helper
 *  @author Vajay Attila
 *  @email vajay.attila@gmail.com
 *  @date 2014-07-29
 *  @copyright MIT License (MIT)
 */

require_once 'helpers/html.php';
require_once 'helpers/logger.php';
 
function dotest(){
	echohtmlbegin();
	echoheader();
	echobodybegin();

	echo 'test.php loaded...<br>'."\r\n";
	setloglevel(LOGGER_DEBUG);
	log_message(LOGGER_INFO, 'Testing logger helper begin ---------------------------------------------------');					
	log_message(LOGGER_ERROR, 'this is a error message');					
	log_message(LOGGER_WARNING, 'this is a warning message');						
	log_message(LOGGER_INFO, 'this is a info message');							
	log_message(LOGGER_DEBUG, 'this is a debug message');								
	log_message(LOGGER_INFO, 'Testing logger helper end -----------------------------------------------------');						
	
	echo 'please check files in the log folder.';
    
	echobodyend();	
	echohtmlend();
}

 ?>